home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / editor / gdphrc14.lha / ged-phrasecomp / misc / gcc.mk < prev    next >
Text File  |  1995-12-02  |  1KB  |  76 lines

  1. #
  2. # $PROJECT: Include Makefiles
  3. #
  4. # $VER: gcc.mk 0.1 (21.07.95)
  5. #
  6. # by
  7. #
  8. # Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
  9. #
  10. # (C) Copyright 1995
  11. # All Rights Reserved !
  12. #
  13. # $HISTORY:
  14. #
  15. # 21.07.95 : 000.001 : initial
  16. #
  17.  
  18. ##############################################################################
  19. #
  20. # GNUMake GCC-C pattern rules
  21. #
  22. # These rules compiles every c and c++ source and puts the output to
  23. # the OBJDIR directory
  24. #
  25.  
  26. $(OBJDIR)/%.o: %.cc
  27.     gcc $(GCCOPTS) $(GCCDEBUG) $(GCCOPTIMIZE) $< -c -o $@
  28.     $(ARCHIVER)
  29.  
  30. $(OBJDIR)/%.o: %.c
  31.     gcc $(GCCOPTS) $(GCCDEBUG) $(GCCOPTIMIZE) $< -c -o $@
  32.     $(ARCHIVER)
  33.  
  34. ##############################################################################
  35. #
  36. # make prototypes
  37. #
  38.  
  39. protos:  $(PROTOS)
  40.  
  41. $(PROTOS): $(SRCS)
  42.     c:swtools/mkproto $(SRCS) TO $(PROTOS)
  43.  
  44. ##############################################################################
  45. #
  46. # check in all files
  47. #
  48.  
  49. checkin:
  50.     ci -I -nV$(VERSION)_$(REVISION) -r -t-initial $(subst RCS,,$(wildcard *))
  51.  
  52. ##############################################################################
  53. #
  54. # check out all files
  55. #
  56.  
  57. checkout:
  58.     $(CO) -l $(subst RCS/,,$(wildcard RCS/*))
  59.  
  60. ##############################################################################
  61. #
  62. # make the object directory
  63. #
  64.  
  65. $(OBJDIR):
  66.     mkdir $(OBJDIR)
  67.  
  68. ##############################################################################
  69. #
  70. # make dependency include makefile
  71. #
  72.  
  73. makedep:
  74.     gcc -MM $(SRCS) $(GCCOPTS) >$(MAKEDEP)
  75.  
  76.